<template>
  <div class="tabbar">
    <van-tabbar v-model="live" class="tabbar-list">
      <van-tabbar-item icon="wap-home-o" class="tabber-item">
        <router-link class="title" to="/home">首页</router-link>
      </van-tabbar-item>
      <van-tabbar-item icon="search" class="tabber-item">
        <router-link class="title" to="/category">分类</router-link>
      </van-tabbar-item>
      <van-tabbar-item icon="friends-o" class="tabber-item">
        <router-link class="title" to="/product">值得买</router-link>
      </van-tabbar-item>
      <van-tabbar-item icon="shopping-cart-o" class="tabber-item">
        <router-link class="title" to="/shopcart">购物车</router-link>
      </van-tabbar-item>
      <van-tabbar-item icon="user-o" class="tabber-item">
        <!-- <router-link class="title" to="/center">个人</router-link> -->
        <router-link class="title" to="/center">个人</router-link>
      </van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
export default defineComponent({
  name: 'TabBar',
})
</script>

<script lang="ts" setup>
import { ref } from 'vue'
const live = ref(0)
</script>

<style lang="scss" scoped>
.active {
  color: #dd1a21;
}
.tabbar {
  .tabbar-list {
    .tabber-item {
      color: #7f7f7f;
      .title {
        color: #7f7f7f;
      }
    }
  }
}
</style>
